<template>
<div>
<span>在此页面演示通过扫描二维码将其他平台账户与微信用户绑定</span>
    <img :src="imgUrl" alt="">
    <span>用户Id为：{{userName}}</span>
    <el-button @click="getDataList()">变更用户模拟</el-button>
</div>
</template>

<script>
export default {
    name: "wx-scan-bind-test",
    data() {
        return {
            imgUrl: 'a',
            userName: ''
        }
    }
    ,
    methods: {
        // 获取数据列表
        getDataList() {
            this.$http({
                url: this.$http.adornUrl('/test/scan/bind'),
                method: 'get',
                params: this.$http.adornParams({
                })
            }).then(({data}) => {
                console.log(data)
                this.imgUrl = data.imgUrl
                this.userName = data.userName
            })
        }
    }
}
</script>

<style scoped>

</style>